projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83b8bcb
)
Fix gtk_style_context_list_classes
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 Oct 2015 21:37:34 +0000
(17:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 Oct 2015 21:37:34 +0000
(17:37 -0400)
The function was always returning NULL.
gtk/gtkstylecontext.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstylecontext.c
b/gtk/gtkstylecontext.c
index 9a5587d51cb545829f613973fbe35730e5b55a8a..9176c02741c98955a2a8c247c333368efabfd8f4 100644
(file)
--- a/
gtk/gtkstylecontext.c
+++ b/
gtk/gtkstylecontext.c
@@
-1402,9
+1402,9
@@
gtk_style_context_list_classes (GtkStyleContext *context)
classes = gtk_css_node_list_classes (priv->cssnode, &n_classes);
- for (i = n_classes; i
-- > n_classes;
)
+ for (i = n_classes; i
> 0; i--
)
{
- quark_str = g_quark_to_string (classes[i]);
+ quark_str = g_quark_to_string (classes[i
- 1
]);
classes_list = g_list_prepend (classes_list, (gchar *) quark_str);
}